package com.weiyuwqj.api.service;

import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.BasItem;
import com.weiyuwqj.api.model.SysArticle;
import com.weiyuwqj.api.model.SysPicture;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2015/12/7.
 */
public interface SysPictureService extends BaseService<SysPicture> {
    //显示
    PageList getList(Paginator p, Map<String, Object> param);
    //获取编辑信息
    SysPicture getSingle(Integer id);

    void addArticlePic(String pic, SysArticle article);
    //获取图片地址
    List<SysPicture> getPictureByItemId(Map map);

    void deleteByItemId(Map map);

    List<SysPicture> getMainPicture(Integer type);

    List<SysPicture> getPartnerPicture();

    PageList getListByItemPicture(Paginator p, Map<String, Object> param);

    void deleteById(Integer id);

    //app活动中心图片
    PageList getListByActivity(Paginator p);

    //根据id修改项目图片类型
    Integer modifyItemPictureTypeById(Integer itemPictureType, Integer id);

    SysPicture getScreenPicture();

    /**
     * 根据不同类型获取图片
     *
     * @param itemId 标ID
     * @param type   项目图片类型  1个人资料 2车辆图片 3相关手续 4风控垫付 5 技术保障
     * @return 标信息
     */
    List<SysPicture> getListByType(Integer itemId, Integer type);
}
